package com.yyy.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "t_segment")
public class Segment implements Serializable {

    /**
     * 默认的序列化 id.
     */
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private Date flightDate;

    private String cabinType;

    private BigDecimal ybPrice;

    private String status;

    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;

    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;

    @Transient
    private String deptCity;

    @Transient
    private String arrvCity;

    @Transient
    private String flightNo;

    public Integer getId() {
        return id;
    }

    public void setId(final Integer id) {
        this.id = id;
    }

    public Date getFlightDate() {
        return flightDate;
    }

    public void setFlightDate(final Date flightDate) {
        this.flightDate = flightDate;
    }

    public String getCabinType() {
        return cabinType;
    }

    public void setCabinType(final String cabinType) {
        this.cabinType = cabinType;
    }

    public BigDecimal getYbPrice() {
        return ybPrice;
    }

    public void setYbPrice(final BigDecimal ybPrice) {
        this.ybPrice = ybPrice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(final String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(final Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDeptCity() {
        return deptCity;
    }

    public void setDeptCity(final String deptCity) {
        this.deptCity = deptCity;
    }

    public String getArrvCity() {
        return arrvCity;
    }

    public void setArrvCity(final String arrvCity) {
        this.arrvCity = arrvCity;
    }

    public String getFlightNo() {
        return flightNo;
    }

    public void setFlightNo(final String flightNo) {
        this.flightNo = flightNo;
    }
}
